<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="../../../../style.css" type="text/css" media="screen">
<link rel="stylesheet" href="../../../../print.css" type="text/css" media="print">
<meta content="DynaGraphics,idv.cjcat.display.dynashape.DynaGraphics,active,winding,beginBitmapFill,beginFill,clear,curveThrough,curveTo,drawTriangles,endFill,lineStyle,lineThrough,lineTo,moveTo" name="keywords">
<title>idv.cjcat.display.dynashape.DynaGraphics</title>
</head>
<body>
<script type="text/javascript" language="javascript" src="../../../../asdoc.js"></script><script type="text/javascript" language="javascript" src="../../../../cookies.js"></script><script type="text/javascript" language="javascript">
<!--
				asdocTitle = 'DynaGraphics - API Documentation';
				var baseRef = '../../../../';
				window.onload = configPage;
			--></script>
<table style="display:none" id="titleTable" cellspacing="0" cellpadding="0" class="titleTable">
<tr>
<td align="left" class="titleTableTitle">CJLibrary</td><td align="right" class="titleTableTopNav"><a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../package-summary.html">All&nbsp;Packages</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../all-classes.html')" href="../../../../class-summary.html">All&nbsp;Classes</a>&nbsp;|&nbsp;<a onclick="loadClassListFrame('../../../../index-list.html')" href="../../../../all-index-A.html">Index</a>&nbsp;|&nbsp;<a href="../../../../index.html?idv/cjcat/display/dynashape/DynaGraphics.html&amp;idv/cjcat/display/dynashape/class-list.html" id="framesLink1">Frames</a><a onclick="parent.location=document.location" href="" style="display:none" id="noFramesLink1">No&nbsp;Frames</a></td><td rowspan="3" align="right" class="titleTableLogo"><img alt="Adobe Logo" title="Adobe Logo" class="logoImage" src="../../../../images/logo.jpg"></td>
</tr>
<tr class="titleTableRow2">
<td align="left" id="subTitle" class="titleTableSubTitle">Class&nbsp;DynaGraphics</td><td align="right" id="subNav" class="titleTableSubNav"><a href="#propertySummary">Properties</a>&nbsp;| <a href="#methodSummary">Methods</a></td>
</tr>
<tr class="titleTableRow3">
<td colspan="2">&nbsp;</td>
</tr>
</table>
<script type="text/javascript" language="javascript">
<!--
if (!isEclipse() || window.name != ECLIPSE_FRAME_NAME) {titleBar_setSubTitle("Class DynaGraphics"); titleBar_setSubNav(false,true,false,false,false,false,true,false,false,false,false,false,false,false);}
--></script>
<div class="MainContent">
<table cellspacing="0" cellpadding="0" class="classHeaderTable">
<tr>
<td class="classHeaderTableLabel">Package</td><td><a onclick="javascript:loadClassListFrame('class-list.html')" href="package-detail.html">idv.cjcat.display.dynashape</a></td>
</tr>
<tr>
<td class="classHeaderTableLabel">Class</td><td class="classSignature">public class DynaGraphics</td>
</tr>
</table>
<p></p>
  The <code>DynaGraphics</code> class lets you use the drawing API dynamically.
  <p>
  In the ordinaray case, you use the drawing API through the <code>Graphics</code>class.
  All the numeric coordinate data you provide to commands such as <code>Graphcis.lineTo()</code> and <code>Graphics.curveTo()</code> are constant values.
  The <code>DynaGraphics</code> class is different.
  Although it provides similar commands to those of the <code>Graphics</code> class,
  you don't pass numeric coordinate data to these commands.
  Instead, you pass objects that have the properties <code>x</code> and <code>y</code> defined as the coordinate data.
  When a <code>DynaGraphics</code> object is used by a <code>DynaShape</code> object,
  not until the <code>DynaShape.render()</code> method is called would the numeric coordinate data of the data objects be accessed to be used by the drawing API.
  That is, when there are changes made to the coordinates of your data objects,
  each render call would redraw the graphics according to these new coordinates.
  </p>
  <p>
  Think of a <code>DynaGraphics</code> object as an object that stores a series of drawing API commands.
  After being added to a <code>DyhaShape</code> object through <code>DynaShape.add()</code>,
  these commands would be actually executed on each call of <code>DynaShape.render()</code>.
  </p>
  <p></p>
<br>
<hr>
</div>
<a name="propertySummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Properties</div>
<table id="summaryTableProperty" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Property</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#active">active</a> : Boolean = true<div class="summaryTableDescription">
   Whether the <code>DynaGraphics</code> object would be rendered/rerendered.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol"><a class="signatureLink" href="#winding">winding</a> : String = "evenOdd"<div class="summaryTableDescription"></div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
</table>
</div>
<a name="methodSummary"></a>
<div class="summarySection">
<div class="summaryTableTitle">Public Methods</div>
<table id="summaryTableMethod" class="summaryTable " cellpadding="3" cellspacing="0">
<tr>
<th>&nbsp;</th><th colspan="2">Method</th><th class="summaryTableOwnerCol">Defined&nbsp;by</th>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#beginBitmapFill()">beginBitmapFill</a>(bmpd:BitmapData):void</div>
<div class="summaryTableDescription">
   Sets the fill to a bitmap data.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#beginFill()">beginFill</a>(fillObj:<a href="../Fill.html">Fill</a>):void</div>
<div class="summaryTableDescription">
   Sets the fill according to a <code>Fill</code> object.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#clear()">clear</a>():void</div>
<div class="summaryTableDescription">
   Clears all drawing commands.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#curveThrough()">curveThrough</a>(objs:Array, sharpness:Number = 0.75):void</div>
<div class="summaryTableDescription">
   Curves through an array of objects.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#curveTo()">curveTo</a>(controlObj:Object, targetObj:Object):void</div>
<div class="summaryTableDescription">
   Draws a curve from the drawing position to the coordinate of a target object, having a contorl object's coordinate as the curve's control point.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#drawTriangles()">drawTriangles</a>(vertices:Vector, indices:Vector = null, uvtData:Vector = null):void</div>
<div class="summaryTableDescription">
   Draws triangles.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#endFill()">endFill</a>():void</div>
<div class="summaryTableDescription">
   Ends the fill command.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#lineStyle()">lineStyle</a>(lineStyleObj:<a href="../LineStyle.html">LineStyle</a>):void</div>
<div class="summaryTableDescription">
   Sets the line style according to a <code>LineStyle</code> object.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#lineThrough()">lineThrough</a>(objs:Array):void</div>
<div class="summaryTableDescription">
   Lines through an array of objects.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#lineTo()">lineTo</a>(targetObj:Object):void</div>
<div class="summaryTableDescription">
   Draws a line from the drawing position to the coordinate of an object.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
<tr class="">
<td class="summaryTablePaddingCol">&nbsp;</td><td class="summaryTableInheritanceCol">&nbsp;</td><td class="summaryTableSignatureCol">
<div class="summarySignature">
<a class="signatureLink" href="#moveTo()">moveTo</a>(targetObj:Object):void</div>
<div class="summaryTableDescription">
   Moves the drawing position to the coordinate of an object.</div>
</td><td class="summaryTableOwnerCol">DynaGraphics</td>
</tr>
</table>
</div>
<script type="text/javascript" language="javascript">
<!--
showHideInherited();
--></script>
<div class="MainContent">
<a name="propertyDetail"></a>
<div class="detailSectionHeader">Property detail</div>
<a name="active"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">active</td><td class="detailHeaderType">property</td>
</tr>
</table>
<div class="detailBody">
<code>public var active:Boolean = true</code><p>
   Whether the <code>DynaGraphics</code> object would be rendered/rerendered.
   </p></div>
<a name="winding"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">winding</td><td class="detailHeaderType">property</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public var winding:String = "evenOdd"</code>
</div>
<a name="methodDetail"></a>
<div class="detailSectionHeader">Method detail</div>
<a name="beginBitmapFill()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">beginBitmapFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td>
</tr>
</table>
<div class="detailBody">
<code>public function beginBitmapFill(bmpd:BitmapData):void</code><p>
   Sets the fill to a bitmap data.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">bmpd</span>:BitmapData</code> &mdash;  The bitmap data.
   </td>
</tr>
</table>
</div>
<a name="beginFill()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">beginFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function beginFill(fillObj:<a href="../Fill.html">Fill</a>):void</code><p>
   Sets the fill according to a <code>Fill</code> object.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">fillObj</span>:<a href="../Fill.html">Fill</a></code> &mdash;  The <code>Fill</code> object.
   </td>
</tr>
</table>
</div>
<a name="clear()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">clear</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function clear():void</code><p>
   Clears all drawing commands.
   </p></div>
<a name="curveThrough()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveThrough</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function curveThrough(objs:Array, sharpness:Number = 0.75):void</code><p>
   Curves through an array of objects.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">objs</span>:Array</code> &mdash;  The array of ofjects.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">sharpness</span>:Number</code> (default = <code>0.75</code>)<code></code></td>
</tr>
</table>
</div>
<a name="curveTo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">curveTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function curveTo(controlObj:Object, targetObj:Object):void</code><p>
   Draws a curve from the drawing position to the coordinate of a target object, having a contorl object's coordinate as the curve's control point.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">controlObj</span>:Object</code> &mdash;  The control object.
   </td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">targetObj</span>:Object</code> &mdash;   The target object.
   </td>
</tr>
</table>
</div>
<a name="drawTriangles()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">drawTriangles</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function drawTriangles(vertices:Vector, indices:Vector = null, uvtData:Vector = null):void</code><p>
   Draws triangles. See the <code>Graphics.drawTriangles()</code> reference for explanations of parameters.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">vertices</span>:Vector</code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">indices</span>:Vector</code> (default = <code>null</code>)<code></code></td>
</tr>
<tr>
<td class="paramSpacer">&nbsp;</td>
</tr>
<tr>
<td width="20px"></td><td><code><span class="label">uvtData</span>:Vector</code> (default = <code>null</code>)<code></code></td>
</tr>
</table>
</div>
<a name="endFill()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">endFill</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function endFill():void</code><p>
   Ends the fill command.
   </p></div>
<a name="lineStyle()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineStyle</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function lineStyle(lineStyleObj:<a href="../LineStyle.html">LineStyle</a>):void</code><p>
   Sets the line style according to a <code>LineStyle</code> object.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">lineStyleObj</span>:<a href="../LineStyle.html">LineStyle</a></code> &mdash;  The <code>LineStyle</code> object.
   </td>
</tr>
</table>
</div>
<a name="lineThrough()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineThrough</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function lineThrough(objs:Array):void</code><p>
   Lines through an array of objects.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">objs</span>:Array</code> &mdash;  The array of objects.
   </td>
</tr>
</table>
</div>
<a name="lineTo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">lineTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function lineTo(targetObj:Object):void</code><p>
   Draws a line from the drawing position to the coordinate of an object.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">targetObj</span>:Object</code> &mdash;  The object.
   </td>
</tr>
</table>
</div>
<a name="moveTo()"></a>
<table cellspacing="0" cellpadding="0" class="detailHeader">
<tr>
<td class="detailHeaderName">moveTo</td><td class="detailHeaderParens">()</td><td class="detailHeaderType">method</td><td class="detailHeaderRule">&nbsp;</td>
</tr>
</table>
<div class="detailBody">
<code>public function moveTo(targetObj:Object):void</code><p>
   Moves the drawing position to the coordinate of an object.
   </p><span class="label">Parameters</span>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="20px"></td><td><code><span class="label">targetObj</span>:Object</code> &mdash;  The object.
   </td>
</tr>
</table>
</div>
<br>
<br>
<hr>
<br>
<p></p>
<center class="copyright"> 
</center>
</div>
</body>
</html>
<!-- -->
